/*
 * @Author: [you name]
 * @Date: 2021-09-17 09:16:36
 * @LastEditors: [you name]
 * @LastEditTime: 2021-09-23 10:52:17
 * @Description: 
 */
import moment from 'moment'


export function fmtDate(date){
  return date?moment(Number(date)).format('YYYY-MM-DD'):'';
}
export function fmtTime(date){
  return date?moment(date).format('YYYY-MM-DD HH:mm:ss'):'';
}